﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MKAdminCore.DTO.Web.Common;
using MKAdminCore.DTO.Web.Login;

namespace MKAdminCore.IService.Web.Login
{
    public interface ILoginService
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="parameter"></param>
        /// <returns></returns>
        Result<UserInfo> UserLogin(LoginInfoParameter parameter);

        /// <summary>
        /// 用户登录日志
        /// </summary>
        /// <param name="parameter"></param>
        /// <returns></returns>
        Task<Result> UserLoginLog(string operatorNo, bool loginStatus, string ipAddress);

        /// <summary>
        /// 验证用户状态
        /// </summary>
        /// <param name="parameter"></param>
        /// <returns></returns>
        Result<UserInfo> VerifyUserStatus(UserInfo userInfo);
    }
}
